package com.morningstar.qs.api.basic.util;

import java.io.InputStream;

import com.morningstar.qs.api.basic.common.config.GlobalConfig;

/**
 * @deprecated Please reference GlobalConfig java file instead.
 * @author dchen2
 *
 */
@Deprecated
public class QsGlobalConfigTool {
	
	public static String ENV_DEBUG="debug";
	public static String ENV_DEV="dev";
	

	/**
	 * @deprecated
	 * @param fileName
	 * @return
	 */
	@Deprecated
	public final InputStream achieveResource(String fileName) {
		return getClass().getClassLoader().getResourceAsStream(fileName);
	}
	
	/**
	 * @deprecated
	 * @param property
	 * @return
	 */
	@Deprecated
	public String getProperty(String property) {
		return GlobalConfig.getInstance().getProperty(property);
	}
	
	/**
	 * @deprecated
	 * @return
	 */
	@Deprecated
	public static String getEnv() {
		return GlobalConfig.getEnv();
	}
}
